import { MockAjax } from "@/mockApi/MockAjax";
// import { customAlphabet } from "nanoid";
// const nanoid = customAlphabet("123456789", 4);

const basedata = [
  //name为 活动名称，data为活动日期，region为活动区域，rule为负责人
  {
    // id: `${nanoid()}`,
    name: "111",
    data: "111",
    region: "111",
    rule: "111",
  },
  {
    // id: `${nanoid()}`,
    name: "222",
    data: "222",
    region: "222",
    rule: "222",
  },
  {
    // id: `${nanoid()}`,
    name: "333",
    data: "333",
    region: "333",
    rule: "333",
  },
  {
    // id: `${nanoid()}`,
    name: "444",
    data: "444",
    region: "444",
    rule: "444",
  },
  {
    // id: `${nanoid()}`,
    name: "555",
    data: "555",
    region: "555",
    rule: "555",
  },
];
const apimockactivitys = new MockAjax("/api/mock-ranking111");
apimockactivitys.initTable(basedata);

export { apimockactivitys };
